package myjava.test.bean.factory;

import java.util.LinkedList;
import java.util.Map;

import myjava.test.xml.reader.bean.BeanContextReader;

public abstract class DealBeanMessage implements BeanFactory {
	
	/**
	 * 获取Bean信息读取器
	 */
	protected BeanContextReader context;
	
	public DealBeanMessage(String path, boolean isRootPath){
		context = init(path, isRootPath);
	}
	
	/**
	 * 初始化Bean信息读取器
	 * @param isRootPath 
	 * @param path 
	 * @return Bean信息读取器
	 */
	public abstract BeanContextReader init(String path, boolean isRootPath);

	/**
	 * 初始化bean信息, 根据bean的id获取该bean的信息
	 */
	public abstract Map<String, LinkedList<Map<String, ?>>> initBeanMessage(String id);
	
}
